// vim: foldmethod=marker : foldmarker=<<<,>>>
/*
 File: crt.c
 Product: <product>
 Creating date: 14/10/2005 20:01
 Remark: 
*/
#include "soddyPch.h"

#include "heap/crt.h"

hidden_q i_t askFor__justSteward(v_p unused, i_t size, spool_datum_p datum) {
 if (size!=0) {
  v_p raw= (datum->raw==NULL)?malloc(size):realloc(datum->raw,size);
  if (raw==NULL) return 0;
  putRaw__spool_datum(datum,raw,size);
  }
 else if (datum->raw!=NULL) 
  { free(datum->raw); putRaw__spool_datum(datum,NULL,0); };
 return 1;
 };

hidden_q heap_steward_law_t law__justSteward={0,(heap_steward_askFor_p)askFor__justSteward};
heap_steward_t justCommon__heap_steward={&law__justSteward};
